
\begin{tikzpicture}[scale=1.0]

\draw[very thin, color=gray, xstep=1, ystep=0.5] (-0.1,-0.1) grid (5, 3.5);
\draw[->] (-0.2, 0) -- (5.2, 0) node[right] {$n_p$};
\draw[->] (0, -0.2) -- (0, 3.7) node[above] {seconds};

\newdimen\yscale

\yscale= 0.025 cm

\foreach \pos/\label in {0.5/1, 1.5/8, 2.5/64, 3.5/512, 4.5/4096} {
\draw (\pos,0) -- (\pos,-0.1) (\pos cm,-2.5ex) node [anchor=base,fill=white,inner sep=1pt]  {\scriptsize{\label}};
}

\foreach \label in {0, 20, ..., 140} {
 \draw (-0.4, \label\yscale) node {\scriptsize{\label}};
}

\draw[very thin, color=gray, xstep=1, ystep=0.5] (0, -3.5) grid (5, -0.5);

\draw[fill=blue!50, fill opacity=0.5] (-1.5, -1.0) rectangle +(1.5, 0.5);
\draw (-0.75, -0.75) node {\scriptsize{S2W}};

\draw[fill=red!50, fill opacity=0.5] (-1.5, -1.5) rectangle +(1.5, 0.5);
\draw (-0.75, -1.25) node {\scriptsize{L2T}};

\draw[fill=green!50, fill opacity=0.5] (-1.5, -2.0) rectangle +(1.5, 0.5);
\draw (-0.75, -1.75) node {\scriptsize{W2L}};

\draw (-1.5, -2.5) rectangle +(1.5, 0.5);
\draw (-0.75, -2.25) node {\scriptsize{\textbf{Total}}};

\draw (-1.5, -3.0) rectangle +(1.5, 0.5);
\draw (-0.75, -2.75) node {\scriptsize{Points}};

\draw (-1.5, -3.5) rectangle +(1.5, 0.5);
\draw (-0.75, -3.25) node {\scriptsize{$\delta$}};


\newdimen\mypos
\newdimen\myoff

\foreach \pos/\vala/\valb/\valc/\vald/\vale/\valf in { 
0/58.75/53.36/0.0698/112.19/29.2M/$\frac{1}{16}$,
1/62.25/56.98/3.90/120.93/233.8M/$\frac{1}{64}$,
2/64.39/57.18/4.93/125.06/1.9B/$\frac{1}{256}$,
3/65.56/57.50/5.92/127.62/15.0B/$\frac{1}{1024}$,
4/67.53/57.75/6.59/131.65/119.7B/$\frac{1}{4096}$ } { 

\mypos=\pos cm
\advance \mypos by 0.5 cm

\draw (\mypos, -0.75 cm) node {\scriptsize{\vala}};
\draw (\mypos, -1.25 cm) node {\scriptsize{\valb}};
\draw (\mypos, -1.75 cm) node {\scriptsize{\valc}};
\draw (\mypos, -2.25 cm) node {\scriptsize{\textbf{\vald}}};
\draw (\mypos, -2.75 cm) node {\scriptsize{\vale}};
\draw (\mypos, -3.25 cm) node {\scriptsize{\valf}};

\advance \mypos by -0.25 cm

\myoff=0 cm

\draw[fill=blue!50, fill opacity=0.5] (\mypos, \myoff) rectangle +(0.5, \vala\yscale);
\advance \myoff by \vala\yscale

\draw[fill=red!50, fill opacity=0.5] (\mypos, \myoff) rectangle +(0.5, \valb\yscale);
\advance \myoff by \valb\yscale

\draw[fill=green!50, fill opacity=0.5] (\mypos, \myoff) rectangle +(0.5, \valc\yscale);

}

\end{tikzpicture}

